import  Dialog from "./Dialog";
function renderDialog(dialog) {
  const { titleText, content } = dialog;
  // 现在默认底部有确定和取消两个按钮，不考虑其他情况
  const dialog = new Dialog({
    titleText,//string
    content,//dom
    confirm: () => {
      console.log('confirm');
    },
    cancel: () => {
      console.log('cancel');
    },
  });
  dialog.show()
}

